$selectedColor: #f6f7ff;
$lighterBlue: #409EFF;
.configlist{
  .container {
    position: relative;
    width: 100%;
    height: 100%;
  }
  .components-list {
    padding: 8px;
    box-sizing: border-box;
    height: 100%;
    .components-item {
      display: inline-block;
      width: 98%;
      margin: 1%;
      transition: transform 0ms !important;
    }
  }
  .components-draggable{
    padding-bottom: 20px;
  }
  .components-title{
    font-size: 14px;
    color: #222;
    margin: 6px 2px;
    margin-left: -8px;
    .svg-icon{
      color: #666;
      font-size: 18px;
    }
  }
  .components-body {
    padding: 8px 10px;
    background: $selectedColor;
    font-size: 12px;
    cursor: move;
    border: 1px dashed $selectedColor;
    border-radius: 3px;
    .svg-icon{
      color: #777;
      font-size: 15px;
    }
    &:hover {
      border: 1px dashed #787be8;
      color: #787be8;
      .svg-icon {
        color: #787be8;
      }
    }
  }
  .left-board {
    width: 140px;
    position: absolute;
    left: 0;
    top: 0;
    height: 100vh;
  }
  .left-scrollbar{
    height: calc(100vh - 125px);
    overflow: hidden;
  }
  .center-scrollbar {
    height: calc(100% - 0px);
    overflow: hidden;
    border-left: 1px solid #f1e8e8;
    border-right: 1px solid #f1e8e8;
    box-sizing: border-box;
  }
  .center-board {
    height: calc( 100vh - 125px );
    width: auto;
    margin: 0 350px 0 140px;
    box-sizing: border-box;
  }
  .empty-info{
    position: absolute;
    top: 46%;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 18px;
    color: #ccb1ea;
    letter-spacing: 4px;
  }
  .action-bar{
    position: relative;
    height: 42px;
    text-align: right;
    padding: 0 15px;
    box-sizing: border-box;;
    border: 1px solid #f1e8e8;
    border-top: none;
    .delete-btn{
      color: #F56C6C;
    }
  }


  .center-board-row {
    padding: 12px 12px 15px 12px;
    box-sizing: border-box;
    & > .el-form {
      // 69 = 12+15+42
      height: calc(100vh - 180px);
    }
  }
  >>>.el-upload--picture-card{
    width: 250px;
    height: 180px;
    line-height: inherit;
    margin: 0 auto;
    display: flex;
    p{
      align-self: center;
      width: 100%;
    }
    .text-upload{
      line-height: 20px;
      display: block;
    }
  }
  >>>.drawing-board {
    height: 100%;
    position: relative;
    .components-body {
      padding: 0;
      margin: 0;
      font-size: 0;
    }
    .sortable-ghost {
      position: relative;
      display: block;
      overflow: hidden;
      &::before {
        content: " ";
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        height: 3px;
        background: rgb(89, 89, 223);
        z-index: 2;
      }
    }
    .components-item.sortable-ghost {
      width: 100%;
      height: 60px;
      background-color: $selectedColor;
    }
    .active-from-item {
      & > .el-form-item{
        background: $selectedColor;
        border-radius: 6px;
        .el-form-item__content{
          width: calc( 100%  - 70px   - 100px );
          transition: all 0.3s;
        }
      }
      & > .drawing-item-copy, & > .drawing-item-delete{
        display: initial;
      }
      & > .component-name{
        color: $lighterBlue;
      }
    }
    .active-from-item.on{
      .el-form-item__content{
        width: calc( 100%    - 70px );
        transition: all 0.3s;
      }
    }
    .active-from-item.change{
      .el-form-item__content{
        width: calc( 100%    - 70px );
        transition: all 0.3s;
      }
    }
    .el-form-item{
      margin-bottom: 15px;
    }
  }
  >>>.drawing-item{
    position: relative;
    cursor: move;
    .el-form-item__content{
      width: calc( 100%  - 100px );
      transition: all 0.3s;
    }
    &.unfocus-bordered:not(.active-from-item) > div:first-child {
      border: 1px dashed #ccc;
    }
    .el-form-item{
      padding: 12px 10px;
    }
  }
  >>>.drawing-item.on{
    .el-form-item__content{
      width: calc( 100% );
      transition: all 0.3s;
      margin-left: 0 !important;
    }
  }
  >>>.drawing-item.change{
    .el-form-item__label{
      width: 100% !important;
      text-align: left;
      padding-left: 15px;
    }
    .el-form-item__content{
      padding-left: 15px;
      margin-left: 0 !important;
      width: calc( 100% );
      transition: all 0.3s;
    }
  }
  >>>.drawing-row-item{
    position: relative;
    cursor: move;
    box-sizing: border-box;
    border: 1px dashed #ccc;
    border-radius: 3px;
    padding: 0 2px;
    margin-bottom: 15px;
    .drawing-row-item {
      margin-bottom: 2px;
    }
    .el-col{
      margin-top: 22px;
    }
    .el-form-item{
      margin-bottom: 0;
    }
    .drag-wrapper{
      min-height: 160px;
    }
    &.active-from-item{
      border: 1px dashed $lighterBlue;
    }
    .component-name{
      position: absolute;
      top: 0;
      left: 0;
      font-size: 12px;
      color: #bbb;
      display: inline-block;
      padding: 0 6px;
    }
  }
  >>>.drawing-item, >>>.drawing-row-item{
    &:hover {
      & > .el-form-item{
        background: $selectedColor;
        border-radius: 6px;
        .el-form-item__content{
          width: calc( 100%  - 70px  - 100px );
          transition: all 0.3s;
        }
        
      }
      & > .drawing-item-copy, & > .drawing-item-delete{
        display: initial;
      }
    }
    & > .drawing-item-copy, & > .drawing-item-delete{
      display: none;
      position: absolute;
      top: 50%;
      margin-top: -22px;
      // transform: translate(0,-50%);
      right: 0;
      width: 22px;
      height: 22px;
      line-height: 22px;
      text-align: center;
      border-radius: 50%;
      font-size: 12px;
      border: 1px solid;
      cursor: pointer;
      z-index: 1;
    }
    & > .drawing-item-copy{
      right: 52px;
      border-color: $lighterBlue;
      color: $lighterBlue;
      background: #fff;
      &:hover{
        background: $lighterBlue;
        color: #fff;
      }
    }
    & > .drawing-item-delete{
      right: 20px;
      border-color: #F56C6C;
      color: #F56C6C;
      background: #fff;
      &:hover{
        background: #F56C6C;
        color: #fff;
      }
    }
  }
  >>>.drawing-item.on, >>>.drawing-row-item.on,>>>.drawing-item.change{
    &:hover {
      .el-form-item__content{
        width: calc( 100%    - 70px );
        transition: all 0.3s;
      }
    }
  }
}
>>>.drawing-row-item{
  > .drawing-item-copy,  > .drawing-item-delete{
    top: -12px !important;
    margin-top: 0 !important;
  }
  .drawing-item{
    > .drawing-item-copy,  > .drawing-item-delete{
      top:50%;
      margin-top: -11px;
    }
  }
}
>>>.is-disabled{
  .el-radio__inner,.el-checkbox__inner{
    background-color:transparent;
    cursor: pointer;
    border-color: #dcdfe6;
  }
  span.el-radio__label,span.el-checkbox__label{
    cursor: pointer;
    color: #606266;
    padding-left: 20px;
  }
  span.el-radio__label{
    padding-left: 10px;
  }
}
>>>.el-checkbox__input.is-disabled{
  position: absolute;
  top: 4px;
}